<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> 
<head>
<%@ include file="../../include/easyui.jsp" %>
<%@ include file="../../include/pGrid.jsp" %>
<title>合同管理</title>
<script>
	$(function(){
		/*列表初始化*/
		var gridParam = { 
			columns : [[ 
				{field: 'outContractNo', title: '内部合同编号', width: 130}
				,{field: 'contractNo', title: '订单编号', width: 270}
				,{field: 'contractTitle', title: '订单名称', width: 250}
				,{field: 'contractType', title: '合同类型', width: 80}
				,{field: 'contractLevel', title: '合同级别', width: 100}
				,{field: 'contractName', title: '合同名称', width: 250}
				,{field: 'signDate', title: '签订日期', width: 120}
				,{field: 'partA', title: '合同甲方', width: 250}
				,{field: 'partB', title: '合同乙方', width: 250}
				,{field: 'partAuser', title: '甲方经办人', width: 120}
				,{field: 'partAphone', title: '甲方联系电话', width: 120}
				,{field: 'partBuser', title: '乙方经办人', width: 120}
				,{field: 'partBphone', title: '乙方联系电话', width: 120}
				,{field: 'budgetMoney', title: '预算金额', width: 90}
				,{field: 'actualMoney', title: '实际金额', width: 90}
				,{field: 'billMoney', title: '开票金额', width: 90}
				,{field: 'auditMoney', title: '审计金额', width: 90}
				,{field: 'returnedMoney', title: '回款金额', width: 90}
				,{field: 'payDesc', title: '付款情况及说明', width: 130}
				,{field: 'mainUnit', title: '总包单位', width: 180}
				,{field: 'assistUnit', title: '分包单位', width: 180}
				,{field: 'department', title: '所属项目部', width: 180}
				,{field : 'remark',width : 150,title: '备注'}
				,{field: 'createTime', title: '创建时间', width: 180}
				,{field: 'createrName', title: '创建人', width: 180}
			]],
			singleSelect : true
		};
		p.dataGrid = $(p.dataGrid).datagrid( $.extend({}, p.dataGridParam, gridParam));

		/*事件响应*/
		$("#buttons .easyui-linkbutton").on("click", function() {
			var id = $(this).attr("motion_code");
			switch (id) {
				case "05":
					p.gridQuery();
					break;
				default:
					break;
			}
		});
		//$("input[name=contractNo]").textbox({});
		//$("input[name=contractTitle]").textbox({});
		
	});
	/*窗口确认回调方法*/
	function choose(){
		return p.dataGrid.datagrid('getSelections');
	}
</script>
</head>
<body  class="easyui-layout">
		<!-- 但行高度33px，多行时 33乘以行数  -->
		<div id="querybar" data-options="region:'north',split:false,border:false" style="height:33px;">
			<div class="easyui-panel" data-options="fit:true,border:false">
				<!-- 查询条件表单，根据配置进行替换  -->
				<form id="queryForm">
				 <input type="hidden" name="className" value="com.fs.jzzn.pojo.Contract" />
				  <!-- 
				  <div style="margin-top:5px;margin-left:10px;float:left;">
				  	内部合同编号：<input  type="text"   name="outContractNo" style="width:130px;"/>
					<input type="hidden" name="outContractNo_searchType" value="like" />
				 </div>
				   -->
				   
				 <div style="margin-top:5px;margin-left:10px;float:left;">
				  	合同类型：
				  	<select name="contractType" style="width:100px;">
				  		<option value="">==不限==</option>
				  		<option value="分包">分包</option>
				  		<option value="合作(内)">合作(内)</option>
				  		<option value="合作(外)">合作(外)</option>
				  	</select>
					<input type="hidden" name="contractType_searchType" value="eq" />
				 </div> 
				 
				 <div style="margin-top:5px;margin-left:10px;float:left;">
				  	合同级别：
				  	<select name="contractLevel" style="width:100px;">
				  		<option value="">==不限==</option>
				  		<option value="子订单">子订单</option>
				  		<option value="框架协议">框架协议</option>
				  		<option value="合同">合同</option>
				  	</select>
					<input type="hidden" name="contractLevel_searchType" value="eq" />
				 </div> 
				   
				 <div style="margin-top:5px;margin-left:10px;float:left;">
				  	订单编号：<input  type="text"   name="contractNo" style="width:150px;"/>
					<input type="hidden" name="contractNo_searchType" value="like" />
				 </div>
				 <div style="margin-top:5px;margin-left:10px;float:left;">
				  	订单名称：<input  type="text" name="contractTitle" style="width:150px;"   />
					<input type="hidden" name="contractTitle_searchType" value="like" />
				 </div>
				 <div id="buttons" style="margin-top:5px;margin-left:10px;float:left;">
			 		<a href="#" class="easyui-linkbutton" iconCls="icon-search" motion_code="05" plain="true">查询</a>
			 	</div>
				</form>
			</div>
		</div>  
	
		<!-- 表格 -->
		<div region="center" border="false">
			<table id="dataGrid"></table>
		</div>
</body>
</html>